# -*- coding: utf-8 -*-
# @Time : 2021/7/2 23:56
# @Author : 摘星星的小女孩
# @Email : wayne_lau@aliyun.com
# @File : front_login.py
# @Project : ecshop
import time
from  selenium import webdriver
from selenium.webdriver.common.by import By

driver=webdriver.Chrome()
driver.maximize_window()
#登录
driver.get("http://192.168.4.138/ecshop/user.php")
driver.implicitly_wait(30)
driver.find_element(By.NAME,"username").send_keys("李秀")   #输入用户名
driver.find_element(By.NAME,"password").send_keys("123456")  #输入密码
driver.find_element(By.NAME,"submit").click()

time.sleep(3)
driver.quit()
